import request from "@/utils/axios";

// 获取客户列表
export function getCustomerList(data) {
	return request({
		path: '/customer/list',
		data
	})
}

// 添加客户
export function addCustomer(data) {
	return request({
		path: '/customer/add',
		data
	})
}

// 更新客户信息
export function updateCustomer( data) {
	return request({
		path: `/customer/update`,
		data
	})
}

// 删除客户
export function deleteCustomer(data) {
	return request({
		path: `/customer/delete`,
		data
	})
}

//导出客户信息
export function exportCustomer(data) {
	return request({
		path: "/customer/export",
		data,
		responseType: "blob"
	});
}
